package net.adst.ui.mainframe.tabs.ourTab;

import net.adst.ui.mainframe.tabs.nanemTap.DetailedTableNaemPanel;
import net.adst.ui.mainframe.tabs.nanemTap.SearchNaemPanel;
import net.adst.ui.mainframe.tabs.nanemTap.SumNaemTablePanel;
import net.adst.util.GBC;

import javax.swing.*;
import java.awt.*;

/**
 * Created with IntelliJ IDEA.
 * User: alekseipot
 * Date: 02.11.12
 * Time: 3:59
 * To change this template use File | Settings | File Templates.
 */
public class OurPanel extends JPanel {

    public OurPanel() {
        setLayout(new GridBagLayout());
        setVisible(true);
        add(new SearchOurPanel(), new GBC(0, 0).setAnchor(GBC.NORTHWEST));
        add(new SumOurTablePanel(), new GBC(1, 0).setAnchor(GBC.SOUTHEAST).setFill(GBC.BOTH));
        add(new DetailedTableOurPanel(), new GBC(0, 1, 2, 1).setFill(GBC.BOTH).setWeight(1, 1));
    }
}
